package com.shijunhao.graduation.service.system;

import com.shijunhao.graduation.domain.dto.ModifyPassDto;
import com.shijunhao.graduation.domain.entity.OrgUser;
import com.shijunhao.graduation.domain.vo.UserCulVo;
import com.shijunhao.graduation.service.system.BaseService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author shijunhao
 * @since 2022-03-02
 */
public interface IOrgUserService extends BaseService<OrgUser> {
    /**
     * @param username: 用户名
     * @return: com.shijunhao.graduation.domain.entity.OrgUser
     * @author: shijunhao
     * @date: 2022/3/3 11:29
     * @description: 根据用户名获取用户信息
     */
    OrgUser loadUserByName(String username);


    /**
     * @param user: 用户注册信息
     * @return: java.lang.Long
     * @author: shijunhao
     * @date: 2022/4/11 0:02
     * @description: 用户注册
     */
    Long registry(OrgUser user);



    /**
     * @param uid: uid
     * @return: com.shijunhao.graduation.domain.entity.OrgUser
     * @author: shijunhao
     * @date: 2022/4/24 22:29
     * @description: 获取账号信息
     */
    OrgUser getCurrentUser(Long uid);


    /**
     * @return: boolean
     * @author: shijunhao
     * @date: 2022/4/26 0:29
     * @description: 更新密码
     */
    boolean updatePass(Long uid,ModifyPassDto dto);

}
